﻿using System;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using Yqd.Enm;

namespace Yqd.Models
{
    public class Yqd_User
    {
        [Key]
        [DatabaseGenerated(DatabaseGeneratedOption.None)]
        [StringLength(50)]
        public string EmployeeCode { get; set; }

        public int AccountId { get; set; }

        [StringLength(100)]
        [DisplayName("用户名")]
        public string Name { get; set; }

        [StringLength(150)]
        [DisplayName("头像")]
        public string Avatar { get; set; }

        [DisplayName("姓别")]
        public int Gender { get; set; }
        
        [StringLength(200)]
        public string Roles { get; set; }

        [StringLength(200)]
        public string PermitItem { get; set; }

        [DisplayName("所在部门")]
        [StringLength(50)]
        public string OrganizationCode { get; set; }

        [StringLength(500)]
        public string OrganizationName { get; set; }

        [StringLength(100)]
        public string Openid { get; set; }

        [StringLength(50)]
        public string UnitName { get; set; }

        [StringLength(50)]
        public string UnitCode { get; set; }

        [StringLength(50)]
        public string empJobLevelCode { get; set; }

        [StringLength(50)]
        public string empJobLevelName { get; set; }

        [StringLength(50)]
        public string empBudgetedPostCode { get; set; }

        [StringLength(50)]
        public string empBudgetedPostName { get; set; }

        public 用户状态 Status { get; set; }

        public DateTime Instime { get; set; }

    }
}
